<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">
								<label class="col-sm-3 control-label"><span style="color: red;">*</span>企业名称：</label>
								<div class="col-sm-8">
									<input id="companyName" name="companyName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><span style="color: red;">*</span>企业代码类型：</label>
								<div class="col-sm-8">
									<select name="companyType"  id="companyType" class="form-control" required>
										<option value="1">统一社会信用代码</option>
										<option value="2">组织机构代码</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><span style="color: red;">*</span>企业代码：</label>
								<div class="col-sm-8">
									<input id="companyCode" name="companyCode" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><span style="color: red;">*</span>法人代表：</label>
								<div class="col-sm-8">
									<input id="applyName" name="applyName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><span style="color: red;">*</span>法人代理身份证号码：</label>
								<div class="col-sm-8">
									<input id="applyCardNumber" name="applyCardNumber" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><span style="color: red;">*</span>法人手机号码：</label>
								<div class="col-sm-8">
									<input id="applyMobile" name="applyMobile" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><span style="color: red;">*</span>所在地区：</label>
								<div class="col-sm-8">
									<select name="area2" id="area2" onChange="getAreaInfo(this.value,3);setArea(this.value,2,'areaId');" style="width:25%;" class="form-control col-sm-1" required>
									</select>
									<select name="area3" id="area3" onChange="getAreaInfo(this.value,4);setArea(this.value,3,'areaId');" style="display:none; width:30%;" class="form-control col-sm-1" required>
									</select>
									<select name="area4" id="area4" onChange="setArea(this.value,4,'areaId');"style="display:none; width:30%;" class="form-control col-sm-1" required>
									</select>
									<input type="hidden" name="proviceAreaId" id="proviceAreaId">
									<input type="hidden" name="cityAreaId" id="cityAreaId">
									<input type="hidden" name="qxAreaId" id="qxAreaId">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">详细地址：</label>
								<div class="col-sm-8">
									<input id="liveAddress" name="liveAddress" class="form-control" type="text">
								</div>
							</div>
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">营业执照图片Id：</label>
								<div class="col-sm-8">
									<input id="companyLicensePhoto" name="companyLicensePhoto" class="form-control" type="text">
								</div>
							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">营业执照：</label>
								<div id="uploader" class="wu-example col-sm-8">
									<div class="queueList">
										<div id="dndArea" class="placeholder">
											<div id="filePicker"></div>
											<p>或将照片拖到这里，单次最多可选1张</p>
										</div>
									</div>
									<div class="statusBar" style="display:none;">
										<div class="progress">
											<span class="text">0%</span>
											<span class="percentage"></span>
										</div>
										<div class="info"></div>
										<div class="btns">
											<div id="filePicker2"></div>
											<div class="uploadBtn">开始上传</div>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
							<input id="attachId" name="attachId" type="hidden" th:value="${attachId}">
							<input id="companyLicensePhoto" name="companyLicensePhoto" type="hidden" th:value="${attachId}">
							<input id="oldAttachId" name="oldAttachId" type="hidden" th:value="${attachId}">
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<!----文件控件js--->
	<script type="text/javascript" th:src="@{/js/plugins/webuploader/webuploader.js}"></script>
	<script type="text/javascript" th:src="@{/js/plugins/webuploader/webuploader_demo.js}"></script>
	<script type="text/javascript" src="/js/appjs/common/area/area.js"></script>
	<script type="text/javascript" src="/js/appjs/system/company/add.js">
	</script>
</body>
</html>
